#include "vectorfunctions.h"


int main()
{
	int r, j, t=0, length=1, carry=0;
	int a[100];
	for(r=0;r<100; r++)
		a[r]=0;
	a[0]=1;
	while (t<50){
		for(j=0; j<length; ++j){
			r=a[j]*2;
			if(r>9){
				a[j]=r%10+carry;
				carry=r/10;
				
			
			}
			else {
				a[j]=r+carry;
				carry=0;
			}
			if(a[length-1]>4)
					++length;
		}
	++t;
	}
	mirror(a, length);
	printVector(a, length);

return 0;
}
